<?php


namespace EchoPHP\Redis;


use EchoPHP\Foundation\ServiceProvider;

class RedisServiceProvider extends ServiceProvider {
    protected $defer = true;

    public function register() {
        $this->app->singleton('redis', function () {
            return new RedisManager($this->app);
        });
    }

    public function provides() {
        return ['redis'];
    }
}